package metalink.admin;
import com.opensymphony.xwork2.ActionSupport;
import java.util.*;
import java.sql.*;
import vo.*;
import vo.mixed.*;
import model.admin.*;
import myutil.*;
import java.io.*;
public class SendMessage_Batch extends ActionSupport{
	
	int[] start_years;
	
	
	public int[] getStart_years() {
		return start_years;
	}
	public void setStart_years(int[] start_years) {
		this.start_years = start_years;
	}
	public String getSubject() {
		return subject;
	}
	public void setSubject(String subject) {
		this.subject = subject;
	}
	public String getBody() {
		return body;
	}
	public void setBody(String body) {
		this.body = body;
	}
	public File getAttached_file() {
		return attached_file;
	}
	public void setAttached_file(File attached_file) {
		this.attached_file = attached_file;
	}
	String individual_students_emails;
	public String getIndividual_students_emails() {
		return individual_students_emails;
	}
	public void setIndividual_students_emails(String individual_students_emails) {
		this.individual_students_emails = individual_students_emails;
	}
	String subject="";
	String body="";
	File attached_file;
	String file_name;
public String getFile_name() {
		return file_name;
	}
	public void setFile_name(String file_name) {
		this.file_name = file_name;
	}
public String execute(){
	try{
		new SendMessage_BatchMo().updatemessage(start_years,individual_students_emails,subject,body,attached_file,file_name);
		return SUCCESS;
	}catch(Exception e){
		e.printStackTrace();
		return ERROR;
	}
}
}
